﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JCFramework.Extensions;

namespace JCSoft.Collect
{
    public enum DataProjectStatus : byte
    {
        [AttachData("Text", "已创建")]
        Created,

        [AttachData("Text", "已删除")]
        Deleted
    }

    public enum DataProjectLimit : byte
    {
        [AttachData("Text", "完全共享")]
        Public,

        [AttachData("Text", "私有")]
        Private,

        [AttachData("Text", "好友共享")]
        Friendly,

        [AttachData("Text", "有条件共享")]
        Condition
    }

    public enum PageEncoding : byte
    {
        [AttachData("Text", "GB2312")]
        GB2312,
        [AttachData("Text", "UTF-8")]
        UTF8,
        [AttachData("Text", "Big5")]
        Big5
    }

    public class DataProject
    {
        public virtual int DataProjectID { get; set; }

        public virtual int UserID { get; set; }

        public virtual string Name { get; set; }

        public virtual string Abstrace { get; set; }

        public virtual DateTime CreateTime { get; set; }

        public virtual DataProjectStatus Status { get; set; }

        public virtual DataProjectLimit Limit { get; set; }

        public virtual string SiteName { get; set; }

        public virtual string IntakeUrl { get; set; }

        public virtual PageEncoding Encoding { get; set; }
    }
}
